#include <FSKModem.h>

FSKModem modem(0, 13);

// The setup() method runs once, when the sketch starts
void setup()   {             
  modem.begin();

  Serial.begin(9600);
  Serial.print("Begin (rev07) : \n");
}

// the loop() method runs over and over again,
// as long as the Arduino has power
void loop()                     
{
  int data;
  // read value
  data = modem.read();
  // send backfs
  if(data != -1) {
//    modem.print(data);
    Serial.print("HEX:");
    Serial.print(data, HEX);
    Serial.print(",ASCII:");
    Serial.print(data);
    Serial.print(".\n");
  }
}
